#include <iostream>
using namespace std;

int main()
{
	int a = 0;
	cin >> a;
	cout << a % 100 / 10;
	return 0;
}

